home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
qbtools1.arc
/
AEIBLFRM.BAS
< prev
next >
Wrap
BASIC Source File
|
1987-01-11
|
896b
|
45 lines
rem $linesize:132
rem $title:'Application Engineer Standard Routines'
rem $subtitle:'Draw a frame around the block I/O area'
' Include the COMMON values
rem $include:'AESHARED.BAS'
sub I.Block.Frame(ycoord%,xcoord%,l.vert%,l.horz%,toggle%) static
'
' I.Block.Frame toggles the Frame of the input block On or Off
'
lx%=xcoord%-1%
rx%=xcoord%+l.horz%
ty%=ycoord%-1%
by%=ycoord%+l.vert%
vc$=" "
bl$=" "
br$=" "
tl$=" "
tr$=" "
hc$=" "
if toggle%=1% then
vc$=chr$(179%)
hc$=chr$(196%)
bl$=chr$(192%)
br$=chr$(217%)
tl$=chr$(218%)
tr$=chr$(191%)
end if
htop$=tl$+string$(l.horz%,hc$)+tr$
hbot$=bl$+string$(l.horz%,hc$)+br$
call qprint(htop$,ty%,lx%)
for j%=ty%+1% to by%-1%
call qprint(vc$,j%,lx%)
call qprint(vc$,j%,rx%)
next j%
call qprint(hbot$,by%,lx%)
end sub